wayland: Add debug output for keymaps
authorMatthias Clasen <mclasen@redhat.com>
Tue, 19 Apr 2016 16:23:51 +0000 (12:23 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 19 Apr 2016 16:23:51 +0000 (12:23 -0400)
Use GDK_DEBUG=input to see your keymap sent over and over again.
Efficiency!

gdk/wayland/gdkkeys-wayland.c

index 2616df41866046ec7bca932264f431789afb2b28..a4f39d33d558d84f9e6f0a88f80a1e143a8ae89b 100644 (file)
@@ -572,6 +572,8 @@ _gdk_wayland_keymap_update_from_fd (GdkKeymap *keymap,
       return;
     }
 
+  GDK_NOTE(INPUT, g_print ("keymap:\n%s\n", map_str));
+
   xkb_keymap = xkb_keymap_new_from_string (context, map_str, format, 0);
   munmap (map_str, size);
   close (fd);